<%@page import="com.shsh.safemanage.util.Constants"%>
<%@page import="com.shsh.safemanage.model.PostCheck"%>
<%@page import="java.util.List"%>
<%@page import="com.shsh.safemanage.dao.DaoCreator"%>
<%@page import="com.shsh.safemanage.dao.PostCheckDao"%>
<%@ page language="java" pageEncoding="UTF-8"%>

<%
{
	
PostCheckDao postcheckDao = DaoCreator.createPostCheckDao();
List<PostCheck> postcheckList = postcheckDao.getPostCheckList();

Long thePostcheckID = 0L;
String postcheckIDStr = (String)request.getParameter(Constants.REQUEST_PARAMETER_POSTCHECK_ID);
try{
	thePostcheckID = Long.parseLong(postcheckIDStr);
}catch(Exception e){
	
}

%>
<select id="postcheck" onchange="selectPostcheck();">
<option value="0" selected="selected">--请选择岗检--</option>
<%
for (PostCheck postcheck: postcheckList) {
%>
	<option value="<%=postcheck.getId()%>" <%=thePostcheckID.equals(postcheck.getId())? "selected":""%>><%=postcheck.getCheckName()%></option>
<%
}
%>
</select>
<%
}
%>